/*
 * @Description: 行业选择
 * @Author: iamsmiling
 * @Date: 2021-06-07 08:30:07
 * @LastEditTime: 2021-06-07 13:04:38
 */

import 'package:credit_business_circle/domain/remote/industry/industry_entity.dart';
import 'package:get/get.dart';

class IndustryController extends GetxController {
  List<IndustryEntity> list = List.generate(
      10,
      (index) =>
          index.isOdd ? IndustryEntity.sample() : IndustryEntity.sample1());

  int currentIndex = 0;

  int currentChildIndex = 0;

  void selectParent(int i) {
    currentIndex = i;
    currentChildIndex = 0;
    update();
  }

  void selectChild(int i) {
    currentChildIndex = i;
    update();
  }
}
